import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'

const routes: RouteRecordRaw[] = [
  {
    path: '/system-setting',
    component: () => import('@renderer/views/systemSetting.vue')
  },
  {
    path: '/tray-menu',
    component: () => import('@renderer/views/trayMenu.vue')
  },
  {
    path: '/color-extranction',
    component: () => import('@renderer/views/colorExtraction/index.vue')
  },
  {
    path: '/:pathMatch(.*)*',
    component: () => import('@renderer/views/index.vue')
  }
]

export default createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes
})
